
cc.Class({
    extends: cc.Component,

    properties: {
        bloodSp: {
            type: cc.Sprite,
            default: null,
        }
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    // 设置血量
    setBlood(value) {
        cc.log(`set blood ${value}`);
        // sprite 类型为 filled
        this.bloodSp.fillRange = value
    },
    start() {

    },

    // update (dt) {},
});
